//
//  tranSum.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/7.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit
// MARK: - 成交汇总
class tranSum: NSObject {
    // MARK: - 属性
    var CON : String? = "---"     // 商品名称
    var COI : String?    = "---"   // 商品代码
    var BQ : String?   = "---"      // 买入量
    var BF : String?     = "---"   // 买入手续费
    var BUA : String?    = "---"     // 买入均价
    var SQ : String?   = "---" //SQ卖出量
    var SF : String?   = "---"  //SF 卖出手续费
    var SEA : String?  = "---"  //卖出均价
    var WF : String?   = "---" //仓储费
    var TF : String?    = "---" // TF托管费

    // MARK: - 自定义构造函数
    init(dict : [String : AnyObject]) {
        super.init()
        setValuesForKeys(dict)
        
        // 商品名称(商品编号)
        print(dict)
        
        COI = (dict["COI"] as? String)
        CON = (dict["CON"] as? String)
        BQ = (dict["BQ"] as? String)
        BF = (dict["BF"] as? String)
        BUA = (dict["BUA"] as? String)
        SQ = (dict["SQ"] as? String)
        SF = (dict["SF"] as? String)
        SEA = (dict["SEA"] as? String)
        WF = (dict["WF"] as? String)
        TF = (dict["TF"] as? String)
        
    }
    // 重写
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
}
